﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed
#pragma once
#include "GcmpCommandInterface.h"

namespace gcmp
{
    /// \brief Command执行前置检测接口类
    ///
    class GCMP_COMMAND_INTERFACE_EXPORT ICommandPrevChecker
    {
    public:
        virtual ~ICommandPrevChecker();

    public:
        /// \brief 命令执行前置检测
        ///
        /// \param commandId 命令Id
        /// \return 检测成功返回true,该命令正常执行。否则返回false,该命令不执行。
        virtual bool Check(const std::wstring &commandId) const = 0;
    };
}